package com.itic.ht.item.category.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itic.appbase.framework.common.service.HtCrudService;
import com.itic.ht.item.category.persistence.dao.ItemCategoryDao;
import com.itic.ht.item.category.persistence.model.ItemCategory;
import com.itic.ht.item.category.persistence.model.ItemCategoryExample;


@Service
@Transactional
public class ItemCategoryService
     extends HtCrudService<ItemCategoryDao,ItemCategory,ItemCategoryExample> {
    @Autowired
    private ItemCategoryDao itemCategoryDao;

    public String deltrue(Integer id ){
    	int result = itemCategoryDao.deleteByPrimaryKey(id);
    	if(result>0){
    		return SUCCESS;
    	}else{
    		return FAILED;
    	}
    }
}